//
//  TeamManagerCell.m
//  SSC
//
//  Created by 红沙尘 on 17/6/26.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import "TeamManagerCell.h"

@interface TeamManagerCell ()
{
    __weak IBOutlet UIView *bgView;
    
    __weak IBOutlet NSLayoutConstraint *lineA;
    __weak IBOutlet NSLayoutConstraint *lineB;
    __weak IBOutlet NSLayoutConstraint *lineC;
    
    __weak IBOutlet UILabel *nameLabel;
    __weak IBOutlet UILabel *touzhuLabel;
    __weak IBOutlet UILabel *chongzhiLabel;
    __weak IBOutlet UILabel *fandianLabel;
    
}
@end

@implementation TeamManagerCell

- (void)awakeFromNib {
    [super awakeFromNib];
    bgView.layer.borderWidth = LineHeight;
    bgView.layer.borderColor = COLOR_CCCCCC.CGColor;
    
    lineA.constant = LineHeight;
    lineB.constant = LineHeight;
    lineC.constant = LineHeight;
}

- (void)loadWithDict:(NSMutableDictionary *)dict {
    nameLabel.text    = [NSString stringWithFormat:@"用户名: %@",dict[@"username"]];
    touzhuLabel.text  = [NSString stringWithFormat:@"投注总额: %@",dict[@"orderamount"]];
    chongzhiLabel.text = [NSString stringWithFormat:@"充值总额: %@",dict[@"rechamount"]];
    fandianLabel.text = [NSString stringWithFormat:@"返点总额: %@",dict[@"rateamount"]];
    
    
}
@end
